package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.DataDictItemDAO;
import top.zywork.dos.DataDictItemDO;
import top.zywork.dto.DataDictItemDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.DataDictItemService;

import javax.annotation.PostConstruct;

/**
 * DataDictItemServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-11-29<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "dataDictItemService")
public class DataDictItemServiceImpl extends AbstractBaseService implements DataDictItemService {

    private DataDictItemDAO dataDictItemDAO;

    @Autowired
    public void setDataDictItemDAO(DataDictItemDAO dataDictItemDAO) {
        super.setBaseDAO(dataDictItemDAO);
        this.dataDictItemDAO = dataDictItemDAO;
    }

    @PostConstruct
    public void init() {
        super.init(DataDictItemDO.class, DataDictItemDTO.class);
    }
}
